import request from "@/utils/request";



export function getAllAgency(agency,page,pageSize) {
    return request({
        url: '/agency/getAllAgency?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:agency
    })
}
export function getAgencyList() {
    return request({
        url: '/agency/getAgencyList',
        method: 'get',
    })
}

export function changeAgency(agency) {
    return request({
        url: '/agency/updateAgency',
        method: 'post',
        data:agency
    })
}

export function deleteAgency(ids) {
    return request({
        url: '/agency/deleteAgency',
        method: 'delete',
        data:ids
    })
}

export function addAgency(agency) {
    return request({
        url: '/agency/addAgency',
        method: 'post',
        data:agency
    })
}





